import sys
import simplejson

"""
Simple utility for loads a json file.
"""

if __name__ == '__main__':
  if len(sys.argv) < 2:
    print '%s: You must provide some file to load' % sys.argv[0]
    sys.exit(-1)

  fd = open(sys.argv[1])
  _input = ''.join([l for l in fd.xreadlines() if l.find('#') == -1])
  print _input
  fd.close()

  data = simplejson.loads(_input)
  print data

